package com.ysu.shop.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ysu.shop.pojo.BasePojo;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 霍京
 * @since 2021-3-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("address")
public class Address extends BasePojo {

    private static final long serialVersionUID = 1L;

    /**
     * 属于哪个用户的id
     */
    @TableField("user_id")
    @JSONField(serialize = false)
    private Integer userId;

    /**
     * 用户名
     */
    @TableField("receiver_name")
    private String receiverName;

    /**
     * 用户的手机号
     */
    @TableField("receiver_phone")
    private String receiverPhone;

    /**
     * 收获地址的省份
     */
    @TableField("receiver_province")
    private String receiverProvince;

    /**
     * 收获地址的市
     */
    @TableField("receiver_city")
    private String receiverCity;

    /**
     * 收获地址的区县
     */
    @TableField("receiver_district")
    private String receiverDistrict;

    /**
     * 收获的详细地址
     */
    @TableField("receiver_address")
    private String receiverAddress;

}
